<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Sugar</title>
</head>

<body>
  <script>

    // 不管定时器时间写多少，都是异步的
    setTimeout(() => {
      console.log('1. 获取到分类栏目数据');
      console.log('2. 根据栏目的 id 获取到文章数据')
    }, 0);

  </script>
</body>

</html>